/*
 *  Filename: main.c
 *  Function: STM32F103 main Function
 *  Created: 2017-06-14
 *  Version: 1.0
 *  Author: Bin
 */

/*-------- Includes --------*/
#include "stm32f10x.h"
#include "systick.h"

#include "mpu6050.h"

/*-------- Global variables --------*/
MPU6050_t data;

/*-------- Main function --------*/
int main(void)
{
    // Intialize MPU6050
    MPU6050_Init();

    while (1) {
        MPU6050_Update(&data);
        delay_ms(100);
    }

    return 0;
}
